package com.slmxz.tms.document.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.slmxz.tms.common.model.Option;
import com.slmxz.tms.document.model.entity.Customer;
import com.slmxz.tms.document.model.vo.CustomerVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 客户Mapper接口
 * @author sunyao
 * @Date 2024-11-15
 */
public interface CustomerMapper extends BaseMapper<Customer> {

    /**
     * 获取客户分页数据
     * @param page 分页对象
     * @return
     */
    List<CustomerVO> selectCustomerPage(IPage<CustomerVO> page, @Param("customer")CustomerVO customer);

    /**
     * 客户下拉框
     * @param customer
     * @return
     */
    List<Option<String>> selectOption(@Param("customer")CustomerVO customer);
}
